package cn.com.sise.pojo;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Resources {
    private Integer resourceId;
    private String name;
    private String url;
    private String classification;
    private String description;
    private String collectTime;
    private String realPath;
    private String historyTime;
    private String RCode;

    public String getRCode() {
        return RCode;
    }

    public void setRCode(String RCode) {
        this.RCode = RCode;
    }

    public Integer getResourceId() {
        return resourceId;
    }

    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getClassification() {
        return classification;
    }

    public void setClassification(String classification) {
        this.classification = classification;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCollectTime() {
        return collectTime;
    }

    public void setCollectTime(Timestamp collectTime) {
        this.collectTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(collectTime);
    }

    public String getHistoryTime() {
        return historyTime;
    }

    public void setHistoryTime(Timestamp historyTime) {
        this.historyTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(historyTime);
    }

    public String getRealPath() {
        return realPath;
    }

    public void setRealPath(String realPath) {
        this.realPath = realPath;
    }

    @Override
    public String toString() {
        return "Resources{" +
                "resourceId=" + resourceId +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", classification='" + classification + '\'' +
                ", description='" + description + '\'' +
                ", collectTime=" + collectTime +
                ", historyTime=" + historyTime +
                '}';
    }
}
